import Vue from 'vue'
import Router from 'vue-router'
import RegLogin from './views/RegLogin.vue'
import ChangePd from './views/ChangePd.vue'
import Home from './views/Home.vue'
import Test from './views/test.vue'
Vue.use(Router)

export default new Router({
  mode: 'history',
  base: process.env.BASE_URL,
  routes: [
    { path: '/', redirect: '/regLogin' },
    { path: '/regLogin', name: 'RegLogin', component: RegLogin },
    {
      path: '/home',
      name: 'Home',
      component: Home,
    },
    {
      path: '/changePd',
      name: 'ChagePd',
      component: ChangePd,
    },
    {
      path: '/404',
      name: '404',
      component: () => import('./views/404.vue')
    },
    {
      path: '/test',
      name: 'Test',
      component: Test
    }
  ]
})